<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: libemb::DateTime Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>libemb</b></li><li class="navelem"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classlibemb_1_1_date_time-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">libemb::DateTime Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>日期时间结构体 <br  />
  
 <a href="classlibemb_1_1_date_time.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_date_time_8h_source.html">DateTime.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1b6a330011134b0fbdc8c0ca13c38766"><td class="memItemLeft" align="right" valign="top"><a id="a1b6a330011134b0fbdc8c0ca13c38766"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>DateTime</b> (unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a270cc1c1fc63d422b73852f929e54202">year</a>, unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a50fe8ad75acaa7e3930c5776c616e341">month</a>, unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a2246c1851c764a89fb8b29053e17790f">day</a>, unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a18956ae352ce30d5d6072034a9dc82a3">hour</a>, unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a3a92698754d317fe3ee31e6fe8eab7ea">minute</a>, unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a2cd3a235829187807969ba9b0a2aa56d">second</a>)</td></tr>
<tr class="separator:a1b6a330011134b0fbdc8c0ca13c38766"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed77a3922a2546657e8177fe0eaafa48"><td class="memItemLeft" align="right" valign="top"><a id="aed77a3922a2546657e8177fe0eaafa48"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>DateTime</b> (const <a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;copy)</td></tr>
<tr class="separator:aed77a3922a2546657e8177fe0eaafa48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a270cc1c1fc63d422b73852f929e54202"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a270cc1c1fc63d422b73852f929e54202">year</a> ()</td></tr>
<tr class="memdesc:a270cc1c1fc63d422b73852f929e54202"><td class="mdescLeft">&#160;</td><td class="mdescRight">年份(0~9999)  <a href="classlibemb_1_1_date_time.html#a270cc1c1fc63d422b73852f929e54202">More...</a><br /></td></tr>
<tr class="separator:a270cc1c1fc63d422b73852f929e54202"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50fe8ad75acaa7e3930c5776c616e341"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a50fe8ad75acaa7e3930c5776c616e341">month</a> ()</td></tr>
<tr class="memdesc:a50fe8ad75acaa7e3930c5776c616e341"><td class="mdescLeft">&#160;</td><td class="mdescRight">月份(1~12)  <a href="classlibemb_1_1_date_time.html#a50fe8ad75acaa7e3930c5776c616e341">More...</a><br /></td></tr>
<tr class="separator:a50fe8ad75acaa7e3930c5776c616e341"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2246c1851c764a89fb8b29053e17790f"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a2246c1851c764a89fb8b29053e17790f">day</a> ()</td></tr>
<tr class="memdesc:a2246c1851c764a89fb8b29053e17790f"><td class="mdescLeft">&#160;</td><td class="mdescRight">日期(1~31)  <a href="classlibemb_1_1_date_time.html#a2246c1851c764a89fb8b29053e17790f">More...</a><br /></td></tr>
<tr class="separator:a2246c1851c764a89fb8b29053e17790f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18956ae352ce30d5d6072034a9dc82a3"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a18956ae352ce30d5d6072034a9dc82a3">hour</a> ()</td></tr>
<tr class="memdesc:a18956ae352ce30d5d6072034a9dc82a3"><td class="mdescLeft">&#160;</td><td class="mdescRight">小时(0~23)  <a href="classlibemb_1_1_date_time.html#a18956ae352ce30d5d6072034a9dc82a3">More...</a><br /></td></tr>
<tr class="separator:a18956ae352ce30d5d6072034a9dc82a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a92698754d317fe3ee31e6fe8eab7ea"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a3a92698754d317fe3ee31e6fe8eab7ea">minute</a> ()</td></tr>
<tr class="memdesc:a3a92698754d317fe3ee31e6fe8eab7ea"><td class="mdescLeft">&#160;</td><td class="mdescRight">分钟(0~59)  <a href="classlibemb_1_1_date_time.html#a3a92698754d317fe3ee31e6fe8eab7ea">More...</a><br /></td></tr>
<tr class="separator:a3a92698754d317fe3ee31e6fe8eab7ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cd3a235829187807969ba9b0a2aa56d"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a2cd3a235829187807969ba9b0a2aa56d">second</a> ()</td></tr>
<tr class="memdesc:a2cd3a235829187807969ba9b0a2aa56d"><td class="mdescLeft">&#160;</td><td class="mdescRight">秒(0~59)  <a href="classlibemb_1_1_date_time.html#a2cd3a235829187807969ba9b0a2aa56d">More...</a><br /></td></tr>
<tr class="separator:a2cd3a235829187807969ba9b0a2aa56d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2482b31528d6e25e5a648d2b15eb3e4f"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a2482b31528d6e25e5a648d2b15eb3e4f">msecond</a> ()</td></tr>
<tr class="memdesc:a2482b31528d6e25e5a648d2b15eb3e4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">毫秒(0~999)  <a href="classlibemb_1_1_date_time.html#a2482b31528d6e25e5a648d2b15eb3e4f">More...</a><br /></td></tr>
<tr class="separator:a2482b31528d6e25e5a648d2b15eb3e4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2850ecf96122706602832c2c2a351875"><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a2850ecf96122706602832c2c2a351875">weekday</a> ()</td></tr>
<tr class="memdesc:a2850ecf96122706602832c2c2a351875"><td class="mdescLeft">&#160;</td><td class="mdescRight">星期(0~6:星期日~星期六)  <a href="classlibemb_1_1_date_time.html#a2850ecf96122706602832c2c2a351875">More...</a><br /></td></tr>
<tr class="separator:a2850ecf96122706602832c2c2a351875"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a464672eb7ded0276bcdef5226f8a64d1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a464672eb7ded0276bcdef5226f8a64d1">setYear</a> (unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a270cc1c1fc63d422b73852f929e54202">year</a>)</td></tr>
<tr class="memdesc:a464672eb7ded0276bcdef5226f8a64d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置年份  <a href="classlibemb_1_1_date_time.html#a464672eb7ded0276bcdef5226f8a64d1">More...</a><br /></td></tr>
<tr class="separator:a464672eb7ded0276bcdef5226f8a64d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c26e1a100b3ff736353c75a81a62ccd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a2c26e1a100b3ff736353c75a81a62ccd">setMonth</a> (unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a50fe8ad75acaa7e3930c5776c616e341">month</a>)</td></tr>
<tr class="memdesc:a2c26e1a100b3ff736353c75a81a62ccd"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置月份  <a href="classlibemb_1_1_date_time.html#a2c26e1a100b3ff736353c75a81a62ccd">More...</a><br /></td></tr>
<tr class="separator:a2c26e1a100b3ff736353c75a81a62ccd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1cb1bc2c322fca013b55ab1c6842fa5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#af1cb1bc2c322fca013b55ab1c6842fa5">setDay</a> (unsigned int date)</td></tr>
<tr class="memdesc:af1cb1bc2c322fca013b55ab1c6842fa5"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置日期  <a href="classlibemb_1_1_date_time.html#af1cb1bc2c322fca013b55ab1c6842fa5">More...</a><br /></td></tr>
<tr class="separator:af1cb1bc2c322fca013b55ab1c6842fa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa59750c9bd81d9e8484d32101aecd9ba"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#aa59750c9bd81d9e8484d32101aecd9ba">setHour</a> (unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a18956ae352ce30d5d6072034a9dc82a3">hour</a>)</td></tr>
<tr class="memdesc:aa59750c9bd81d9e8484d32101aecd9ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置小时  <a href="classlibemb_1_1_date_time.html#aa59750c9bd81d9e8484d32101aecd9ba">More...</a><br /></td></tr>
<tr class="separator:aa59750c9bd81d9e8484d32101aecd9ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afcf96bdbab200186b142cfa73776fcfe"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#afcf96bdbab200186b142cfa73776fcfe">setMinute</a> (unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a3a92698754d317fe3ee31e6fe8eab7ea">minute</a>)</td></tr>
<tr class="memdesc:afcf96bdbab200186b142cfa73776fcfe"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置分钟  <a href="classlibemb_1_1_date_time.html#afcf96bdbab200186b142cfa73776fcfe">More...</a><br /></td></tr>
<tr class="separator:afcf96bdbab200186b142cfa73776fcfe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af10df424bc3a08da8e7d3c024de021a6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#af10df424bc3a08da8e7d3c024de021a6">setSecond</a> (unsigned int <a class="el" href="classlibemb_1_1_date_time.html#a2cd3a235829187807969ba9b0a2aa56d">second</a>)</td></tr>
<tr class="memdesc:af10df424bc3a08da8e7d3c024de021a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置秒数  <a href="classlibemb_1_1_date_time.html#af10df424bc3a08da8e7d3c024de021a6">More...</a><br /></td></tr>
<tr class="separator:af10df424bc3a08da8e7d3c024de021a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a976357aa9b2fca3b8084b8c8cea30e62"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a976357aa9b2fca3b8084b8c8cea30e62">setMSecond</a> (unsigned int microSec)</td></tr>
<tr class="memdesc:a976357aa9b2fca3b8084b8c8cea30e62"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置毫秒数  <a href="classlibemb_1_1_date_time.html#a976357aa9b2fca3b8084b8c8cea30e62">More...</a><br /></td></tr>
<tr class="separator:a976357aa9b2fca3b8084b8c8cea30e62"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a205a901c68cf86d03c252b20f640f2f5"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a205a901c68cf86d03c252b20f640f2f5">toString</a> ()</td></tr>
<tr class="memdesc:a205a901c68cf86d03c252b20f640f2f5"><td class="mdescLeft">&#160;</td><td class="mdescRight">转换为字符串格式:"yyyy-mm-dd hh:MM:ss"  <a href="classlibemb_1_1_date_time.html#a205a901c68cf86d03c252b20f640f2f5">More...</a><br /></td></tr>
<tr class="separator:a205a901c68cf86d03c252b20f640f2f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5086b585b748c4b7164f478664e1de4a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a5086b585b748c4b7164f478664e1de4a">isLeapYear</a> ()</td></tr>
<tr class="memdesc:a5086b585b748c4b7164f478664e1de4a"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否是润年  <a href="classlibemb_1_1_date_time.html#a5086b585b748c4b7164f478664e1de4a">More...</a><br /></td></tr>
<tr class="separator:a5086b585b748c4b7164f478664e1de4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a611c6125b419acda633c512b54b5dfb1"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classlibemb_1_1_date_time.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a611c6125b419acda633c512b54b5dfb1">currentDateTime</a> ()</td></tr>
<tr class="memdesc:a611c6125b419acda633c512b54b5dfb1"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取当前日期时间  <a href="classlibemb_1_1_date_time.html#a611c6125b419acda633c512b54b5dfb1">More...</a><br /></td></tr>
<tr class="separator:a611c6125b419acda633c512b54b5dfb1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac41971dbd8b7b2ff813a8b9f6a8dd3c7"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#ac41971dbd8b7b2ff813a8b9f6a8dd3c7">setCurrentDateTime</a> (<a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;dateTime)</td></tr>
<tr class="memdesc:ac41971dbd8b7b2ff813a8b9f6a8dd3c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置当前时间  <a href="classlibemb_1_1_date_time.html#ac41971dbd8b7b2ff813a8b9f6a8dd3c7">More...</a><br /></td></tr>
<tr class="separator:ac41971dbd8b7b2ff813a8b9f6a8dd3c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdc7b88ac07862e9a3391427568f2875"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classlibemb_1_1_date_time.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#acdc7b88ac07862e9a3391427568f2875">getRTCDateTime</a> ()</td></tr>
<tr class="memdesc:acdc7b88ac07862e9a3391427568f2875"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取RTC时间  <a href="classlibemb_1_1_date_time.html#acdc7b88ac07862e9a3391427568f2875">More...</a><br /></td></tr>
<tr class="separator:acdc7b88ac07862e9a3391427568f2875"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a950cd35e4adef9dd7faad1a56e777073"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_date_time.html#a950cd35e4adef9dd7faad1a56e777073">setRTCDateTime</a> (<a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;dateTime)</td></tr>
<tr class="memdesc:a950cd35e4adef9dd7faad1a56e777073"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置RTC时间  <a href="classlibemb_1_1_date_time.html#a950cd35e4adef9dd7faad1a56e777073">More...</a><br /></td></tr>
<tr class="separator:a950cd35e4adef9dd7faad1a56e777073"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>日期时间结构体 <br  />
 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a611c6125b419acda633c512b54b5dfb1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a611c6125b419acda633c512b54b5dfb1">&#9670;&nbsp;</a></span>currentDateTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> libemb::DateTime::currentDateTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取当前日期时间 </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a> </dd></dl>

</div>
</div>
<a id="a2246c1851c764a89fb8b29053e17790f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2246c1851c764a89fb8b29053e17790f">&#9670;&nbsp;</a></span>day()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int libemb::DateTime::day </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>日期(1~31) </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int </dd></dl>

</div>
</div>
<a id="acdc7b88ac07862e9a3391427568f2875"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acdc7b88ac07862e9a3391427568f2875">&#9670;&nbsp;</a></span>getRTCDateTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> libemb::DateTime::getRTCDateTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取RTC时间 </p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a> </dd></dl>

</div>
</div>
<a id="a18956ae352ce30d5d6072034a9dc82a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18956ae352ce30d5d6072034a9dc82a3">&#9670;&nbsp;</a></span>hour()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int libemb::DateTime::hour </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>小时(0~23) </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int </dd></dl>

</div>
</div>
<a id="a5086b585b748c4b7164f478664e1de4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5086b585b748c4b7164f478664e1de4a">&#9670;&nbsp;</a></span>isLeapYear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::DateTime::isLeapYear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否是润年 </p>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="a3a92698754d317fe3ee31e6fe8eab7ea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a92698754d317fe3ee31e6fe8eab7ea">&#9670;&nbsp;</a></span>minute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int libemb::DateTime::minute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>分钟(0~59) </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int </dd></dl>

</div>
</div>
<a id="a50fe8ad75acaa7e3930c5776c616e341"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50fe8ad75acaa7e3930c5776c616e341">&#9670;&nbsp;</a></span>month()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int libemb::DateTime::month </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>月份(1~12) </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int </dd></dl>

</div>
</div>
<a id="a2482b31528d6e25e5a648d2b15eb3e4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2482b31528d6e25e5a648d2b15eb3e4f">&#9670;&nbsp;</a></span>msecond()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int libemb::DateTime::msecond </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>毫秒(0~999) </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int </dd></dl>

</div>
</div>
<a id="a2cd3a235829187807969ba9b0a2aa56d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cd3a235829187807969ba9b0a2aa56d">&#9670;&nbsp;</a></span>second()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int libemb::DateTime::second </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>秒(0~59) </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int </dd></dl>

</div>
</div>
<a id="ac41971dbd8b7b2ff813a8b9f6a8dd3c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac41971dbd8b7b2ff813a8b9f6a8dd3c7">&#9670;&nbsp;</a></span>setCurrentDateTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::DateTime::setCurrentDateTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td>
          <td class="paramname"><em>dateTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置当前时间 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dateTime</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="af1cb1bc2c322fca013b55ab1c6842fa5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1cb1bc2c322fca013b55ab1c6842fa5">&#9670;&nbsp;</a></span>setDay()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp; libemb::DateTime::setDay </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>date</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置日期 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">date</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a>&amp; </dd></dl>

</div>
</div>
<a id="aa59750c9bd81d9e8484d32101aecd9ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa59750c9bd81d9e8484d32101aecd9ba">&#9670;&nbsp;</a></span>setHour()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp; libemb::DateTime::setHour </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>hour</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置小时 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hour</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a>&amp; </dd></dl>

</div>
</div>
<a id="afcf96bdbab200186b142cfa73776fcfe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afcf96bdbab200186b142cfa73776fcfe">&#9670;&nbsp;</a></span>setMinute()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp; libemb::DateTime::setMinute </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>minute</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置分钟 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">minute</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a>&amp; </dd></dl>

</div>
</div>
<a id="a2c26e1a100b3ff736353c75a81a62ccd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c26e1a100b3ff736353c75a81a62ccd">&#9670;&nbsp;</a></span>setMonth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp; libemb::DateTime::setMonth </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>month</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置月份 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">month</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a>&amp; </dd></dl>

</div>
</div>
<a id="a976357aa9b2fca3b8084b8c8cea30e62"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a976357aa9b2fca3b8084b8c8cea30e62">&#9670;&nbsp;</a></span>setMSecond()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp; libemb::DateTime::setMSecond </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>microSec</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置毫秒数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">microSec</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a>&amp; </dd></dl>

</div>
</div>
<a id="a950cd35e4adef9dd7faad1a56e777073"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a950cd35e4adef9dd7faad1a56e777073">&#9670;&nbsp;</a></span>setRTCDateTime()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::DateTime::setRTCDateTime </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp;&#160;</td>
          <td class="paramname"><em>dateTime</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>设置RTC时间 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">dateTime</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true </dd>
<dd>
false </dd></dl>

</div>
</div>
<a id="af10df424bc3a08da8e7d3c024de021a6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af10df424bc3a08da8e7d3c024de021a6">&#9670;&nbsp;</a></span>setSecond()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp; libemb::DateTime::setSecond </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>second</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置秒数 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">second</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a>&amp; </dd></dl>

</div>
</div>
<a id="a464672eb7ded0276bcdef5226f8a64d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a464672eb7ded0276bcdef5226f8a64d1">&#9670;&nbsp;</a></span>setYear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlibemb_1_1_date_time.html">DateTime</a> &amp; libemb::DateTime::setYear </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>year</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置年份 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">year</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classlibemb_1_1_date_time.html" title="日期时间结构体">DateTime</a>&amp; </dd></dl>

</div>
</div>
<a id="a205a901c68cf86d03c252b20f640f2f5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a205a901c68cf86d03c252b20f640f2f5">&#9670;&nbsp;</a></span>toString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string libemb::DateTime::toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>转换为字符串格式:"yyyy-mm-dd hh:MM:ss" </p>
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>

</div>
</div>
<a id="a2850ecf96122706602832c2c2a351875"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2850ecf96122706602832c2c2a351875">&#9670;&nbsp;</a></span>weekday()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int libemb::DateTime::weekday </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>星期(0~6:星期日~星期六) </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int </dd></dl>

</div>
</div>
<a id="a270cc1c1fc63d422b73852f929e54202"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a270cc1c1fc63d422b73852f929e54202">&#9670;&nbsp;</a></span>year()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int libemb::DateTime::year </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>年份(0~9999) </p>
<dl class="section return"><dt>Returns</dt><dd>unsigned int </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_date_time_8h_source.html">DateTime.h</a></li>
<li>src/DateTime.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
